import logo from './assets/logo.svg'
import { Outlet } from 'react-router'
import { useEffect } from 'react'

function App() {
  useEffect(() => {
    const token = localStorage.getItem('token')
    if (token) {
      // window.ipcRenderer.invoke('open-main')
    }
  }, [])

  return (
    <>
      <div className="flex flex-col items-center justify-center">
        <img className="mt-14 mb-8 w-52" src={logo} alt="logo"/>
      </div>
      <Outlet/>
    </>
  )
}

export default App
